package com.ymatou.iapi.withdraw.service;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

import com.ymt.base.YmatouBaseCall;
import com.ymttest.utils.EnvSetup;
/**
*提现记录列表--推手提现记录查询Call
*FreeMaker Template自动生成代码
*/
public class HunterQueryListCall extends YmatouBaseCall{
	private static String opurl ="/api/WithDrawQuery/HunterQueryList";
	
	public HunterQueryListCall() {
		super(EnvSetup.getSystemUrl("withdraw_iapi"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Accept","text/xml,text/javascript,text/html,application/json");
		client.addHeader("Content-Type", "application/json; charset=UTF-8");
	}
	
	 public int getTotal()
	 {
	   return  JSONObject.fromObject(getString("Data")).getInt("total");
	 }
	 
	 
	    public JSONArray  getWithDrawInvoiceList()
	    {
	      return  JSONArray.fromObject(JSONObject.fromObject(getString("Data")).getString("infos"));
	      
	    }
}